package com.adou.demo;

public class StrDemo {
    public static void main(String[] args) {
        System.out.println("2023-12-12".compareTo("2023-12-12"));
        System.out.println("2023-12-12".compareTo("2023-12-11"));
        System.out.println("1999-12-12".compareTo("2023-12-13"));

        System.out.println("".compareTo("2023-12-13"));
        System.out.println("2023-12-13".compareTo(""));
        System.out.println("2023-12-13".compareTo(null));
    }
}
